
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选择器权重性： id > class > 标签</title>
    <style>
        p{
            color: red;
        }
        #cn{
            color: royalblue;
        }
        .cn{
            color: springgreen;
        }
    </style>
</head>
<body>
    <p id="cn" class="cn">中国</p>
</body>
</html>